{include file="public/header" /}
<style>
    .img-circle{
        border-radius: 0;
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>详情</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal" name="userAdd" id="userAdd">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户ID：</label>
                            <div class="input-group col-sm-4">
                                <input id="user_id" type="text" class="form-control" name="user_id"
                                       value="{$userInfo.user_id}" disabled>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户名称：</label>
                            <div class="input-group col-sm-4">
                                <input id="user_username" type="text" class="form-control" name="user_username"
                                       value="{$userInfo.user_username}" disabled>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">公司名称：</label>
                            <div class="input-group col-sm-4">
                                <input id="user_shop" type="text" class="form-control" name="user_shop"
                                       value="{$userInfo.user_shop}" disabled>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">头像：</label>
                            <div class="input-group col-sm-5">
                                <img id="user_image" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$userInfo.user_image}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">用户状态：</label>
                            <div class="input-group col-sm-4">
                                <input id="user_status" type="text" class="form-control" name="user_status"
                                       value="{if $userInfo.user_status==0}认证中{/if}{if $userInfo.user_status==1}通过{/if}{if $userInfo.user_status==2}驳回{/if}" disabled>
                            </div>
                        </div>

                        {if $userInfo.user_status==2}
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">驳回原因：</label>
                            <div class="input-group col-sm-4">
                                <textarea id="user_reject_reason" type="text" class="form-control" name="user_reject_reason" disabled>{$userInfo.user_reject_reason}</textarea>
                            </div>
                        </div>
                        {/if}

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">认证时间：</label>
                            <div class="input-group col-sm-4">
                                <input id="user_reject_time" type="text" class="form-control" name="user_reject_time" value="{$userInfo.user_reject_time}"
                                       disabled>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">身份证正面：</label>
                            <div class="input-group col-sm-5">
                                <img id="user_zheng" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$userInfo.user_zheng}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">身份证反面：</label>
                            <div class="input-group col-sm-5">
                                <img id="user_fan" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$userInfo.user_fan}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">名片：</label>
                            <div class="input-group col-sm-5">
                                <img id="user_card" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$userInfo.user_card}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">营业执照：</label>
                            <div class="input-group col-sm-5">
                                <img id="user_zhizhao" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$userInfo.user_zhizhao}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i>
                                    返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
{include file="public/footer" /}

<!--<script type="text/javascript" src="__JS__/Crop.js"></script>-->
<!--<script type="text/javascript" src="__JS__/jquery.min.js"></script>-->
<script type="text/javascript">
    $('.img-circle').viewer({
        url: 'data-original',
    });
</script>
</body>
</html>